<?php

class Value_Number
    extends Value {

	private static function toNumber($mValue) {

	    return is_numeric($mValue)? (float)$mValue : null;

	}

    public function set(
        $mValue = null
        ) {

        return parent::set(self::toNumber($mValue));

    }

    public function isEquals(
        $mValue
        ) {

		return $this->mValue === self::toNumber($mValue);

    }

}

?>